#include "http-server-on-tcp.h"

#include "http-session-on-tcp.h"


HttpServerOnTCP::HttpServerOnTCP(IOContext &context, uint16_t port, HttpDispatcher &dispatcher)
	: HttpServer(context, port, dispatcher)
{
	start();
}

HttpServerOnTCP::~HttpServerOnTCP()
{
}

std::unique_ptr<HttpSession> HttpServerOnTCP::createSession(tcp::socket &&socket)
{
	return std::make_unique<HttpSessionOnTCP>(*this, std::move(socket));
}
